<?php
require_once( '../system/loginauth.inc.php' );
session_name( 'SESS_SITEMANAGE' );
session_start();

if( !isset( $_SESSION['ADMIN_LOGIN']['STAFF_ID']  ) ){
	header("Location: /web-admin/login.php");
	exit;
}
$login['autoid']     = $_SESSION['ADMIN_LOGIN']['STAFF_SEQ'];
$login['staff_id']   = $_SESSION['ADMIN_LOGIN']['STAFF_ID'];
$login['staff_name'] = $_SESSION['ADMIN_LOGIN']['STAFF_NAME'];
//$login['staff_auth'] = $_SESSION['ADMIN_LOGIN']['STAFF_AUTH'];

/*
$_SESSION['ADMIN_LOGIN']['STAFF_ID']    = $res['id'];
$_SESSION['ADMIN_LOGIN']['STAFF_SEQ']   = $res['id'];
$_SESSION['ADMIN_LOGIN']['STAFF_MAIL']  = $res['email'];
$_SESSION['ADMIN_LOGIN']['STAFF_NAME']  = $res['staff_name'];
*/
$smarty->assign('login', $login );


// 

?>